﻿using System.Configuration;

namespace Telerik.Sitefinity.Social.Configuration
{
    /// <summary>
    /// Helper class used to get a SectionHandler for List module in web.config
    /// </summary>
    public static class ConfigHelper
    {
        private static readonly SectionHandler handler =
            (SectionHandler)ConfigurationManager.GetSection("telerik/social");

        /// <summary>
        /// Static property that returns Section Handler for List module.
        /// </summary>
        /// <value><see cref="SectionHandler"/> object.</value>
        public static SectionHandler Handler
        {
            get
            {
                return handler;
            }
        }
    }
}
